package car

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func Index(c *gin.Context) {
	c.String(http.StatusOK, "%s", "car首页")
}

func Detail(c *gin.Context) {
	c.Set("car_id", "渝A01043")
	c.JSON(http.StatusOK, gin.H{
		"code":    200,
		"message": "查询成功",
		"data":    "渝A01043",
		"success": true,
	})
}

func Del(c *gin.Context) {
	c.Set("car_id", "渝A01043")
	c.JSON(http.StatusOK, gin.H{
		"code":    200,
		"message": "删除成功",
		"data":    nil,
		"success": true,
	})
}
